<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});


Route::match(['get','post'],'login','Admin\LoginController@login');
Route::get('gencode','Admin\LoginController@genCaptcha')->name('gen_code');
Route::get('checkcode','Admin\LoginController@checkcode');


Route::get('show','ExcelController@showpage');
Route::get('genexcel','ExcelController@getExcel')->name('genoutputexcel');
Route::get('/downexcel/{id?}','ExcelController@downExcelfile')->name('downexcel');

Route::match(['get','post'],'guanlian','Admin\ModeltestController@guanlian');

Route::match(['get','post'],'testredis','ExcelController@getRedis');

